package com.qd.aliyun.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 阿里云短信配置
 * @author sjk
 */
@Configuration
@ConfigurationProperties("aliyun.sms")
@Data
@ConditionalOnProperty(prefix = "aliyun.sms", name = "enable", havingValue = "true")
public class AliYunSmsConfig {
    private boolean enable;
    private boolean debugLog;
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String queueName;
}
